﻿@model GameSchoolApplication.Models.Notification

<script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Tilkynningar</legend>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            @Html.LabelFor(model => model.eventType)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.eventType)
            @Html.ValidationMessageFor(model => model.eventType)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.userID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.userID)
            @Html.ValidationMessageFor(model => model.userID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.relationID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.relationID)
            @Html.ValidationMessageFor(model => model.relationID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dateAdded)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.dateAdded)
            @Html.ValidationMessageFor(model => model.dateAdded)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

